package org.hugh.quotation;

import lombok.extern.slf4j.Slf4j;
import org.hugh.model.QuotationInfoEntity;
import org.hugh.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class QuotationService {

    @Autowired
    private RedisUtil redisUtil;

    public QuotationInfoEntity querySingleSec(String secCode) {
        return redisUtil.get(secCode, QuotationInfoEntity.class);
    }
}
